#include <stdio.h>
#include <stdlib.h>
#include "minbinheap.h" // 请不要删除，否则检查不通过

int parent(int i){
    return i >> 1;
}

int left(int i){
    return i << 1 |1;
}

int right(int i){
    return left(i) + 1;
}

void swap_node(MinHeapNode *x, MinHeapNode *y){
    int v = x -> value; x -> value = y -> value; y -> value = v;
}
